package com.example.demo.leeCode;

public class ReverLeftWords {
    public static void main(String[] args) {
        String s = "abcdefg";
        int k = 2;
        System.out.println(new ReverLeftWords().reverseLeftWords(s,k));
    }

    public String reverseLeftWords(String s, int n) {
        String newStr = "";
        newStr = s.substring(n,s.length())  + s.substring(0,n);
        return newStr;
    }
}
